package org.jeecg.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.system.entity.SysUserDaily;
import org.jeecg.modules.system.entity.SysUserReport;
import org.jeecg.modules.system.mapper.SysUserReportMapper;
import org.jeecg.modules.system.model.WorkHourVo;
import org.jeecg.modules.system.service.ISysUserReportService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: sys_user_report
 * @Author: jeecg-boot
 * @Date: 2022-10-06
 * @Version: V1.0
 */
@Service
public class SysUserReportServiceImpl extends ServiceImpl<SysUserReportMapper, SysUserReport> implements ISysUserReportService {

    @Override
    public List<SysUserReport> queryList(String date, String userId, Integer limit) {
        return this.baseMapper.queryList(date, userId, limit);
    }



    @Override
    public Page<SysUserReport> queryPage(Page<SysUserReport> page, String dateStart, String dateEnd, String id, String strength) {
        return this.baseMapper.queryPage(page, dateStart,dateEnd, id,strength);
    }


    @Override
    public Integer workHour(String date, String roleId, String userId) {
        return this.baseMapper.workHour(date, roleId, userId);
    }

    @Override
    public List<WorkHourVo> workHourChar(String date, String roleId, String userId, List<String> depts) {
        return this.baseMapper.workHourChar(date, roleId, userId, depts);
    }
}
